package net.xxcxcxcx.xc_enhancedmob.effect;

import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectType;
import net.xxcxcxcx.xc_enhancedmob.skills.Ref;

public class FobidHealEffect extends StatusEffect implements effet{
    public FobidHealEffect() {
        this(StatusEffectType.HARMFUL, 0xB80780);
    }

    protected FobidHealEffect(StatusEffectType type, int color) {
        super(type, color);
    }

    @Override
    public boolean canApplyUpdateEffect(int duration, int amplifier) {
        return false;
    }

    @Override
    public boolean onTreat(LivingEntity mobEntity, Ref<Float> amount, int level) {
        if (level >= 1) {return false;}
        return true;
    }

}
